from django.urls import path
from ninja import NinjaAPI
from .api.routers import router

# 创建API实例
api = NinjaAPI(
    title="线路管理API",
    version="1.0.2",
    docs_url="/docs/",
    csrf=True
)

# 添加路由
api.add_router("/", router)

urlpatterns = [
    path("", api.urls),
] 